<html lang="zh-cn">{include file="index/meta" /}
  
  <body class="body">
    <div>
      <div class="common-layout min-w-[1200px]">
        <section class="el-container w-100 h-screen">
          <!--侧边栏开始-->{include file="index/main" /}
          <!--侧边栏结束-->
          <section class="el-container is-vertical">
            <!--顶部-->{include file="index/header" /}
            <!--顶部结束-->
            <main class="el-main main-wrap h-full p-0">
              <div class="el-scrollbar">
                <div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default">
                  <div class="el-scrollbar__view" style="">
                    <div class="p-[10px]">
                      <div class="main-container">
                        <div class="flex ml-[18px] justify-between items-center mt-[20px] mb-[5px]">
                          <span class="text-[20px]">网站设置</span></div>
                        <form class="el-form el-form--default el-form--label-right page-form" method="post" onsubmit="return post_add(this,'{:url('index')}')">
                          <div class="el-card is-never-shadow box-card !border-none">
                            <div class="el-card__body" style="">
                              <h3 class="panel-title !text-sm">基本设置</h3>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">站点名称</label>
                                <div class="col-sm-10">
                                  <input type="text" value="{$site.site_name}" name="site_name" placeholder="请输入站点名称" class="form-control"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">站点根网址</label>
                                <div class="col-sm-10">
                                  <input type="text" value="{$site.site_url}" name="site_url" placeholder="请输入站点根网址" class="form-control"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">网站Logo</label>
                                <div class="col-sm-10 input-group mb-3" style="width: 83.33333333%;">
                                  <input type="text" id="site_logo" value="{$site.site_logo}" name="site_logo" placeholder="请输入网站Logo" class="form-control">
                                  <button onclick="qh_open('图片管理','{:url('attachment/add',['name'=>'site_logo'])}',700,500)" class="el-button el-button--primary" type="button">上传</button></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">站点关键词</label>
                                <div class="col-sm-10">
                                  <input type="text" value="{$site.site_keyword}" name="site_keyword" placeholder="请输入站点关键词" class="form-control"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">网站版权信</label>
                                <div class="col-sm-10">
                                  <input type="text" value="{$site.site_copyright}" name="site_copyright" placeholder="请输入网站版权信" class="form-control"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">网站备案号</label>
                                <div class="col-sm-10">
                                  <input type="text" value="{$site.site_filing}" name="site_filing" placeholder="请输入网站备案号" class="form-control"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">公安备案号</label>
                                <div class="col-sm-10">
                                  <input type="text" value="{$site.site_security_number}" name="site_security_number" placeholder="请输入公安备案号号" class="form-control"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">站点描述</label>
                                <div class="col-sm-10">
                                  <input type="text" value="{$site.site_description}" name="site_description" placeholder="请输入站点描述" class="form-control"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">统计代码</label>
                                <div class="col-sm-10">
                                  <textarea type="text" name="site_code" placeholder="请输入统计代码" class="form-control">{$site.site_code}</textarea></div>
                              </div>
                            </div>
                          </div>
                          <div class="el-card is-never-shadow box-card !border-none">
                            <div class="el-card__body" style="">
                              <h3 class="panel-title !text-sm">核心设置</h3>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">模板风格</label>
                                <div class="col-sm-10">
                                  <select class="form-select" name="site_theme">
                                      {volist name="them_pc" id="data"}
                                    <option value="{$data}" {$site.site_theme==$data ? 'selected': ''}>{$data}</option>
                                    {/volist}
                                    </select></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">上传限制</label>
                                <div class="col-sm-10">
                                  <input type="text" value="{$site.upload_maxsize}" name="upload_maxsize" placeholder="请输入上传限制" class="form-control"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">附件类型</label>
                                <div class="col-sm-10">
                                  <input type="text" value="{$site.upload_types}" name="upload_types" placeholder="请输入附件类型" class="form-control"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">图片水印</label>
                                <div class="col-sm-10">
                                  <div class="form-check form-switch">
                                    <input class="form-check-input" value="1" name="watermark_enable" type="checkbox" role="switch" id="watermark_enable" {$site.watermark_enable ? 'checked': ''}>
                                    <label class="form-check-label" for="watermark_enable">开启图片水印</label></div>
                                </div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">水印上传</label>
                                <div class="col-sm-10 input-group mb-3" style="width: 83.33333333%;">
                                  <input type="text" id="watermark_name" name="watermark_name" placeholder="请输入水印上传" class="form-control">
                                  <button onclick="qh_open('图片管理','{:url('attachment/add',['name'=>'watermark_name'])}',700,500)" class="el-button el-button--primary" type="button">上传</button></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">水印位置</label>
                                <div class="col-sm-10">
                                  <select class="form-select" name="watermark_position" aria-label="请选择会员状态">
                                    <option value="1" {$site.watermark_position==1 ? 'selected': ''}>左上角</option>
                                    <option value="2" {$site.watermark_position==2 ? 'selected': ''}>居中</option>
                                    <option value="3" {$site.watermark_position==3 ? 'selected': ''}>右上角</option>
                                    <option label="4" {$site.watermark_position==4 ? 'selected': ''}>左居中</option>
                                    <option label="5" {$site.watermark_position==5 ? 'selected': ''}>居中</option>
                                    <option label="6" {$site.watermark_position==6 ? 'selected': ''}>右居中</option>
                                    <option label="7" {$site.watermark_position==7 ? 'selected': ''}>左下角</option>
                                    <option label="8" {$site.watermark_position==8 ? 'selected': ''}>下居中</option>
                                    <option label="9" {$site.watermark_position==9 ? 'selected': ''}>右下角</option></select>
                                </div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">透明度</label>
                                <div class="col-sm-10">
                                  <input type="range" value="{$site.watermark_trans}" name="watermark_trans" class="form-range" id="watermark_trans"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">推送token</label>
                                <div class="col-sm-10">
                                  <textarea type="text" name="baidu_push_token" placeholder="请输入推送token" class="form-control">{$site.baidu_push_token}</textarea></div>
                              </div>
                            </div>
                          </div>
                          <div class="el-card is-never-shadow box-card !border-none">
                            <div class="el-card__body" style="">
                              <h3 class="panel-title !text-sm">安全设置</h3>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">评论验证</label>
                                <div class="col-sm-10">
                                  <div class="form-check form-switch">
                                    <input class="form-check-input" value="1" name="comment_code" type="checkbox" role="switch" id="comment_code" {$site.comment_code ? 'checked': ''}>
                                    <label class="form-check-label" for="comment_code">是否开启评论验证</label></div>
                                </div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">评论审核</label>
                                <div class="col-sm-10">
                                  <div class="form-check form-switch">
                                    <input class="form-check-input" value="1" name="comment_check" type="checkbox" role="switch" id="comment_check" {$site.comment_check ? 'checked': ''}>
                                    <label class="form-check-label" for="comment_check">是否开启评论验证</label></div>
                                </div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">游客评论</label>
                                <div class="col-sm-10">
                                  <div class="form-check form-switch">
                                    <input class="form-check-input" value="1" name="comment_tourist" type="checkbox" role="switch" id="comment_tourist" {$site.comment_tourist ? 'checked': ''}>
                                    <label class="form-check-label" for="comment_tourist">是否游客评论</label></div>
                                </div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">禁止登录后台的IP</label>
                                <div class="col-sm-10">
                                  <textarea type="text" name="admin_prohibit_ip" placeholder="匹配IP段用“*”占位，如192.168.*.*，多个IP地址请用英文逗号" class="form-control">{$site.admin_prohibit_ip}</textarea></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">前端IP黑名单列表</label>
                                <div class="col-sm-10">
                                  <textarea type="text" name="blacklist_ip" placeholder="匹配IP段用“*”占位，如192.168.*.*，多个IP地址请用英文逗号" class="form-control">{$site.blacklist_ip}</textarea></div>
                              </div>
                            </div>
                          </div>
                          <div class="el-card is-never-shadow box-card !border-none">
                            <div class="el-card__body" style="">
                              <h3 class="panel-title !text-sm">会员设置</h3>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">会员模板</label>
                                <div class="col-sm-10">
                                  <select class="form-select" name="member_theme">
                                      {volist name="them_member" id="data"}
                                    <option value="{$data}" {$site.member_theme==$data ? 'selected': ''}>{$data}</option>
                                    {/volist}</select></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">QQ互联ID</label>
                                <div class="col-sm-10">
                                  <input type="text" value="{$site.qq_appid}" name="qq_appid" placeholder="请输入QQ互联ID" class="form-control"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">QQ互联秘钥</label>
                                <div class="col-sm-10">
                                  <input type="text" value="{$site.qq_secret}" name="qq_secret" placeholder="请输入QQ互联秘钥" class="form-control"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">QQ回调地址</label>
                                <div class="col-sm-10">
                                  <input type="text" value="{$site.qq_url}" name="qq_url" placeholder="请输入QQ回调地址" class="form-control"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">会员注册</label>
                                <div class="col-sm-10">
                                  <div class="form-check form-switch">
                                    <input class="form-check-input" value="1" name="member_register" type="checkbox" role="switch" id="member_register" {$site.member_register ? 'checked': ''}>
                                    <label class="form-check-label" for="member_register">是否开启会员注册</label></div>
                                </div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">注册审核</label>
                                <div class="col-sm-10">
                                  <div class="form-check form-switch">
                                    <input class="form-check-input" value="1" name="member_qh" type="checkbox" role="switch" id="member_qh" {$site.member_qh ? 'checked': ''}>
                                    <label class="form-check-label" for="member_qh">是否开启注册审核</label></div>
                                </div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">登录验证</label>
                                <div class="col-sm-10">
                                  <div class="form-check form-switch">
                                    <input class="form-check-input" value="1" name="member_chek" type="checkbox" role="switch" id="member_chek" {$site.member_chek ? 'checked': ''}>
                                    <label class="form-check-label" for="member_chek">是否开启登录验证</label></div>
                                </div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">评论验证</label>
                                <div class="col-sm-10">
                                  <div class="form-check form-switch">
                                    <input class="form-check-input" value="1" name="comment_code" type="checkbox" role="switch" id="comment_code" {$site.comment_code ? 'checked': ''}>
                                    <label class="form-check-label" for="comment_code">是否开启评论验证</label></div>
                                </div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">注册验证</label>
                                <div class="col-sm-10">
                                  <div class="form-check form-switch">
                                    <input class="form-check-input" value="1" name="member_isregister" type="checkbox" role="switch" id="member_isregister" {$site.member_isregister ? 'checked': ''}>
                                    <label class="form-check-label" for="member_isregister">是否注册验证</label></div>
                                </div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">1/兑换积分</label>
                                <div class="col-sm-10">
                                  <input type="range" value="{$site.rmb_point_rate}" name="rmb_point_rate" class="form-range" id="rmb_point_rate"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">默认积分</label>
                                <div class="col-sm-10">
                                  <input type="range" value="{$site.member_point}" name="member_point" class="form-range" id="member_point"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">每日奖励积分</label>
                                <div class="col-sm-10">
                                  <input type="range" value="{$site.login_point}" name="login_point" class="form-range" id="login_point"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">发布评论奖励积分</label>
                                <div class="col-sm-10">
                                  <input type="range" value="{$site.comment_point}" name="comment_point" class="form-range" id="comment_point"></div>
                              </div>
                              <div class="mb-3 row">
                                <label class="col-sm-2 col-form-label el-form-item__label" style="width: 150px;">投稿奖励积分</label>
                                <div class="col-sm-10">
                                  <input type="range" value="{$site.publish_point}" name="publish_point" class="form-range" id="publish_point"></div>
                              </div>
                            </div>
                          </div>
                          <!--底部-->
                          <footer class="el-dialog__footer">
                            <span class="dialog-footer">
                              <button class="el-button el-button--primary" aria-disabled="false" type="submit">
                                <span class="">提交保存</span></button>
                            </span>
                          </footer>
                        </form>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </main>
          </section>
        </section>
      </div>
    </div>{include file="index/footer" /}</body>

</html>